/**
 * @Author: 李文浩
 * @Date: 2019/8/15
 * @Last Modified by:   李文浩
 * @Last Modified time: 2019-08-15 15:45:00
 */
import axios from '@/api/fetch';
import * as types from './types';
import SERVER from '@/api/server';

// 附加项目查询
export const getAddItem = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/basedata/appendProject`, { params });

// 附加项目新增
export const addAddItem = params => axios.post(`${SERVER.DMSCLOUD_REPAIR}/basedata/appendProject`, params);

// 附加项目修改
export const editAddItem = (params, id) => axios.put(`${SERVER.DMSCLOUD_REPAIR}/basedata/appendProject/${id}`, params);
